#include<stdio.h>
extern int maximo(int* v, unsigned short n);
extern long long int* productoEscalar(int* v, int k, unsigned short n); //Ej2
extern unsigned long long int productoInterno(unsigned short* v1, unsigned short* v2, unsigned short n); //Ej4

int main(){
	int v[] = {8,4,4,8,6,4,9,-7,-19,-19,4,-5,12,8,18,19,1,4,-14,5};
	printf("%d\n",maximo(v,20));
	
	long long int* res; int i;
	res = productoEscalar(v,2,20); for(i=0;i<20;i++) printf("%lld,",res[i]); printf("\n");
	
	unsigned short v1[] = {1,2,3,4};
	unsigned short v2[] = {4,3,2,1};
	printf("%llu\n",productoInterno(v1,v2,4));
	
	return 0;
}
